#!/bin/sh

xmessage -buttons reboot,halt,poweroff "$@" ""

case "$?" in
	101)
		/usr/bin/systemctl reboot
		;;
	102)
		/usr/bin/systemctl halt
		;;
	103)
		/usr/bin/systemctl poweroff
		;;
esac
